﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using TMDT_Nhom1A.DAO;

namespace TMDT_Nhom1A.BUS
{
    public class Statistic_BUS
    {
        public static string calculateTransactionStatistic()
        {
            return Statistic_DAO.calculateTransactionStatistic();
        }

        //tinh doanh thu theo thang va quy cua nam hien tai
        public static void CalculateMonthlyAndQuaterRevenue(ref string monthlyRevenue,ref string quaterRevenue)
        {
            Statistic_DAO.CalculateMonthlyAndQuaterRevenue(ref monthlyRevenue, ref quaterRevenue);
        }

        //thong ke doanh thu theo nam 
        public static void CalculateYearlyRevenue(ref string xData, ref string yearly)
        {
            Statistic_DAO.CalculateYearlyRevenue(ref xData, ref yearly);
        }

        public static string calculateRevenueByCatalogue(ref string parentCatalogue)
        {
            return Statistic_DAO.calculateRevenueByCatalogue(ref parentCatalogue);
        }
    }
}
